home *** CD-ROM | disk | FTP | other *** search
/ Champak 49 / Volume 49 - JOGO DISK .iso / Games / hungerstrike.swf / scripts / DefineSprite_508 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-09-28  |  510 b   |  29 lines

  1. stop();
  2. _parent.page = 1;
  3. previous_btn.onRelease = function()
  4. {
  5.    _parent.page = _parent.page - 1;
  6.    if(_parent.page < 1)
  7.    {
  8.       _parent.page = 3;
  9.    }
  10.    gotoAndStop("p" + _parent.page);
  11. };
  12. next_btn.onRelease = function()
  13. {
  14.    _parent.page = _parent.page + 1;
  15.    if(_parent.page > 3)
  16.    {
  17.       _parent.page = 1;
  18.    }
  19.    gotoAndStop("p" + _parent.page);
  20. };
  21. p2.onRelease = function()
  22. {
  23.    gotoAndStop(this._name);
  24. };
  25. p3.onRelease = function()
  26. {
  27.    gotoAndStop(this._name);
  28. };
  29.